package cn.lan.scau_hotel_service.repository;

import cn.lan.scau_hotel_service.entity.RoomType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoomTypeRepository extends JpaRepository<RoomType,Integer> {

    RoomType getRoomTypeById(int id);

    RoomType getRoomTypeByTypeName(String typeName);

    int deleteRoomTypeById(int id);

    List<RoomType> findAll();
}
